﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MySql.Data.MySqlClient;

namespace WebServicePI
{
    public class MySqlConnectionPI
    {
        private MySqlConnection cn;

        public MySqlConnectionPI()
        {
            try
            {
                cn = new MySqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["cnMySql"].ConnectionString);
            }
            catch { }
        }
        public MySqlConnection getCN
        {
            get { return cn; }
            set { cn = value; }
        }

    }
}